<%@ page language="java" contentType="text/html; charset=UTF-8"%>
<%@include file="/common/common.jsp" %>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" >
  		<STYLE type="text/css"> 
		.np { font-family: Webdings; font-size:18px; color:black; cursor:hand; }
	A:link { COLOR: #000000; FONT-SIZE: 12px; TEXT-DECORATION: none}
	A:visited { COLOR: #000000; FONT-SIZE: 12px; TEXT-DECORATION: none}
	A:hover { COLOR: #cc0000; FONT-SIZE: 12px; TEXT-DECORATION: none}
	BODY {
	FONT-SIZE: 12px;
	scrollbar-face-color:#F0F0E5;
	scrollbar-shadow-color:#000000;
	scrollbar-highlight-color:#000000;
	scrollbar-3dlight-color:#F0F0E5;
	scrollbar-darkshadow-color:#F0F0E5;
	scrollbar-track-color:#F0F0E5;
	scrollbar-arrow-color:#000000;
	margin-left: 0px;
	margin-top: 0px;
	margin-left: 0px;
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 0px;	
}
	TD { FONT-SIZE: 12px; line-height: 150%}
		.STYLE1 {color: #FFFFFF}
        </STYLE>
        
	</head>
	<body bgcolor="#ccddee" link="#000066" vlink="#0066FF" alink="#99FF00">
		<center>
			<fieldset><legend>基本信息(带<font color="red">*</font>项为必填项)</legend>
			<s:form method="post" action="doUpdateDept">
				<table width="100%" border=1 align="center" cellpadding="0"
					cellspacing="0" bgcolor="#ccddee">
					<tr>
						<td width="15%" align="right">
							部门编号:
						</td>
						<td width="30%">
							<s:textfield name="department.deptcode" theme="simple" required="true" readonly="true"></s:textfield>
						</td>
						<td align="left">
							
						</td>
					</tr>
					<tr>
						<td width="15%" align="right">
							部门名称<font color="red">*</font>
						</td>
						<td width="30%">
							<s:textfield name="department.deptcaption" theme="simple" required="true"></s:textfield>
						</td>
						<td align="left">
							
						</td>
					</tr>
					<tr>
						<td width="15%" align="right">
							联系人<font color="red">*</font>
						</td>
						<td width="30%">
							<s:textfield name="department.deptlinkname" theme="simple" required="true"></s:textfield>
						</td>
						<td align="left">
							
						</td>
					</tr>
					<tr>
						<td width="15%" align="right">
							联系电话
						</td>
						<td width="30%">
							<s:textfield name="department.deptphone" theme="simple" required="true"></s:textfield>
						</td>
						<td align="left">
							
						</td>
					</tr>
					<tr>
						<td width="15%" align="right">
							联系地址
						</td>
						<td width="30%">
							<s:textfield name="department.deptadress" theme="simple" required="true"></s:textfield>
						</td>
						<td align="left">
						</td>
					</tr>
				</table>
				<br/>
				<table align="left">
					<tr align="left">
						<td  align="left">
							<s:submit value=" 保存 " theme="simple" />
						</td>
						<td  align="left">
							<input value=" 增加下级部门 " type="button" onclick="parent.frames['content'].location='addDept.action?supdept=${department.deptcode}'">
						</td>
					</tr>
				</table>
			</s:form>
			</fieldset>
			<c:if test="${(!empty pm ) and (pm.total > 0)}">
			<fieldset><legend>下级部门</legend>
			<jsp:include flush="true" page="listDepts.jsp"></jsp:include>
			</fieldset>
			</c:if>
		</center>

	</body>
</html>